<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>一定借到钱</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <script src="../../script/vue.min.js"></script>
    <script src="../../script/fastclick.js"></script>
    <style>
        #menuThree {
            background: #f5f5f5;
        }
        .three-top{
            width: 100%;
            height: 213px;
            background: linear-gradient(to right, #49b2fb, #3969fb);
            overflow: hidden;
        }
        .three-top img{
          width: 50%;
          margin-left: 50%;
          transform: translateX(-50%);
          margin-top: 5%;
        }
        .steps{
            padding: 20px 0;
            text-align: center;
        }
        .steps span{
            font-size: 16px;
        }
        .steps-sum{
            width: 20px;
            height: 20px;
            /*background: #f18930;*/
            border: #3a6cfb solid 1px;
            color: #3a6cfb;
            border-radius: 50%;
            line-height: 18px;
            text-align: center;
            font-size: 16px;
            box-sizing: border-box;
        }
        .three-btn{
            padding: 18px 40px;
            text-align: center;
        }
        .three-btn button{
            width: 100%;
            height: 50px;
            border-radius: 25px;
            font-size: 17px;
            color: #fff;
            background: -webkit-linear-gradient(left, #fe8449 , #ff544e);
            /*box-shadow: 0 0 8px #f7d212;*/
        }
        .three-p{
            margin: 20px 0;
            color: #323232;
            text-align: center;
            overflow: hidden;
        }
        .three-p>span{
          background: #f5f5f5;
          height: 40px;
          padding: 5px 20px;
          font-size: 18px;
          line-height: 30px;
          border-radius: 20px;
          box-sizing: border-box;
        }
        .three-p>span>span{
            color: #ff514e;
        }
        .backgray{
          margin: 12px;
          height: 8px;
          background: #dcdada;
          border-radius: 4px;
        }
        .three-infor{
            padding-top: 15px;
            overflow: hidden;
            background: #fff;
            margin: 0 22px;
            margin-top: -13px;
            padding-bottom: 30px;
            border-bottom-left-radius: 5px;
            border-bottom-right-radius: 5px;
        }
        .three-infor img{
            width: 140px;
            height: 192px;
            float: left;
            margin-left: 30px;
        }
        .moocBox{
            height: 140px;
            margin-top: 20px;
            overflow: hidden;
        }
        .three-infor ul{
            display: block;
            width: 80%;
            float: left;
            font-size: 13px;
            text-align: center;
            line-height: 20px;
            color: #000;
        }
        .bottom{
          height: 20px;
        }
    </style>
</head>

<body>
    <section id="menuThree">
        <div class="three-top">
          <img src="../../image/three.png" alt="">
        </div>
        <div class="steps">
            <span class="steps-sum">1</span>
            <span>填写资料</span>
            <span class="steps-sum">2</span>
            <span>一键投递</span>
            <span class="steps-sum">3</span>
            <span>最快1分钟放款</span>
        </div>
        <div class="three-btn">
            <button @click="goPay">立即借款</button>
        </div>
        <div class="backgray"></div>
        <div class="three-infor">
            <!-- <img src="../../image/money.png"> -->
            <p class="three-p"><span>已有<span>2798548</span>人借款成功</span></p>

            <div id="moocBox" class="moocBox">
                <ul>
                    <li>189****7898成功借款20000元</li>
                    <li>173****2598成功借款500元</li>
                    <li>136****1478成功借款1800元</li>
                    <li>132****3651成功借款6500元</li>
                    <li>131****2698成功借款8500元</li>
                    <li>177****1236成功借款9800元</li>
                    <li>199****2687成功借款12000元</li>
                    <li>172****6878成功借款20000元</li>
                    <li>163****2496成功借款500元</li>
                    <li>186****1472成功借款1800元</li>
                </ul>
            </div>
        </div>
        <p class="bottom"></p>
    </section>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript">
apiready = function() {
  FastClick.attach(document.body);
    api.setRefreshHeaderInfo({
        visible: false,
    });
};
    var vm = new Vue({
        el: '#menuThree',
        data: {},
        methods: {
            goPay: function() {
                api.openWin({
                    name: 'wrap_link',
                    url: 'wrap_link.html'
                });
            }
        },
        created: function() {},
        mounted: function() {
        }
    })

var area = document.getElementById('moocBox');
var iliHeight = 20; //单行滚动的高度
var speed = 50; //滚动的速度
var time;
var delay = 0;
area.innerHTML += area.innerHTML;

function startScroll() {
    area.scrollTop++;
    time = setInterval("scrollUp()", speed);
}

function scrollUp() {
    if (area.scrollTop % iliHeight == 0) {
        clearInterval(time);
        setTimeout(startScroll, delay);
    } else {
        area.scrollTop++;
        if (area.scrollTop >= area.scrollHeight / 2) {
            area.scrollTop = 0;
        }
    }
}

startScroll()
</script>

</html>
